package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.domain.BaseEntity;
import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 封号信息业务对象 ykj_user_banned
 *
 * @author zhang
 * @date 2024-07-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserBannedBo extends BaseEntity {

    /** 自增主键 */
    @NotNull(
            message = "自增主键不能为空",
            groups = {EditGroup.class})
    private Long id;

    /** */
    @NotNull(
            message = "不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /** 操作原因 */
    @NotBlank(
            message = "操作原因不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String reason;

    /** 封号结束时间 */
    @NotNull(
            message = "封号结束时间不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Date endTime;

    /** 1=一天,2=3天,3=一周,4=一个月,5=三个月,99=永久 */
    @NotNull(
            message = "1=一天,2=3天,3=一周,4=一个月,5=三个月,99=永久不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private Integer limitType;

    /** 爱洞Id */
    private String platformId;
    /** 手机号 */
    @NotBlank(
            message = "手机号不能为空",
            groups = {AddGroup.class, EditGroup.class})
    private String phoneNum;

    /** 备注（仅显示在后台管理系统） */
    private String remark;
}
